package com.student.wym.service.impl;

import com.student.wym.mapper.QuestionMapper;
import com.student.wym.po.Question;
import com.student.wym.service.IQuestionService;
import com.student.wym.vo.UpdateRequestVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class QuestionServiceImpl implements IQuestionService {

    @Autowired
    private QuestionMapper questionMapper;

    @Override
    public Integer findRadioNum() {
        return questionMapper.findRadioNum();
    }

    @Override
    public Integer findCheckNum() {
        return questionMapper.findCheckNum();
    }

    @Override
    public List<Question> findAll() {
        return questionMapper.findAll();
    }

    @Override
    public void addAll(List<Question> questions) {
        questionMapper.addAll(questions);
    }

    @Override
    public Integer findJudgeNum() {
        return questionMapper.findJudgeNum();
    }

    @Override
    public void deleteAll() {
        questionMapper.deleteAll();

    }

    @Override
    public void insert(Question question) {
        questionMapper.insert(question);
    }

    @Override
    public void update(UpdateRequestVo vo) {
        questionMapper.update(vo);

    }

    @Override
    public Question findById(Integer id) {
        return questionMapper.findById(id);
    }


}
